
let APIURL = "`{APIURL}`";
let demand_config = {
    typeOptions: {
        1: {
            name: '门头屏', id: '1', def: {
                location: '3', color: '1', span: '3',
                locationOptions: { 1: { name: '户外', id: '1' }, 2: { name: '室内', id: '2' }, 3: { name: '半户外', id: '3' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P6', id: '1' }, 2: { name: 'P8', id: '2' }, 3: { name: 'P10', id: '3' }, 4: { name: '其他', id: '4' }, },
            }
        },
        2: {
            name: '户外广告屏', id: '2', def: {
                location: '1', color: '3', span: '3',
                locationOptions: { 1: { name: '户外', id: '1' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P6', id: '1' }, 2: { name: 'P8', id: '2' }, 3: { name: 'P10', id: '3' }, 4: { name: '其他', id: '4' }, },
            }
        },
        3: {
            name: '信息告示屏', id: '3', def: {
                location: '1', color: '1', span: '3',
                locationOptions: { 1: { name: '户外', id: '1' }, 2: { name: '室内', id: '2' }, 3: { name: '半户外', id: '3' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P6', id: '1' }, 2: { name: 'P8', id: '2' }, 3: { name: 'P10', id: '3' }, 4: { name: '其他', id: '4' }, },
            }
        },
        4: {
            name: '舞台用屏', id: '4', def: {
                location: '2', color: '3', span: '2',
                locationOptions: { 1: { name: '户外', id: '1' }, 2: { name: '室内', id: '2' }, 3: { name: '半户外', id: '3' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P3', id: '1' }, 2: { name: 'P4', id: '2' }, 3: { name: 'P5', id: '3' }, 4: { name: '其他', id: '4' } }
            }
        },
        5: {
            name: '室内高清屏', id: '5', def: {
                location: '2', color: '3', span: '2',
                locationOptions: { 2: { name: '室内', id: '2' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P1.25', id: '1' }, 2: { name: 'P2.0', id: '2' }, 3: { name: 'P2.5', id: '3' }, 4: { name: '其他', id: '4' } }
            }
        },
        0: {
            name: '其他', id: '0', def: {
                location: '1', color: '3', span: '3',
                locationOptions: { 1: { name: '户外', id: '1' }, 2: { name: '室内', id: '2' }, 3: { name: '半户外', id: '3' } },
                colorOptions: { 1: { name: '单色', id: '1' }, 2: { name: '双色', id: '2' }, 3: { name: '全彩', id: '3' } },
                spanOptions: { 1: { name: 'P6', id: '1' }, 2: { name: 'P8', id: '2' }, 3: { name: 'P10', id: '3' }, 4: { name: '其他', id: '4' } },
            }
        }
    },
    locationOptions: {
        1: { name: '户外', id: '1' },
        2: { name: '室内', id: '2' },
        3: { name: '半户外', id: '3' }
    },
    colorOptions: {
        1: { name: '单色', id: '1' },
        2: { name: '双色', id: '2' },
        3: { name: '全彩', id: '3' }
    },
    spanOptions: {
        1: { name: 'P6', id: '1' },
        2: { name: 'P8', id: '2' },
        3: { name: 'P10', id: '3' },
        4: { name: '其他', id: '4' },
    },
    faultOptions: {
        1: { name: '整屏或部分不亮', id: '1' },
        2: { name: '出现亮点暗点', id: '2' },
        3: { name: '有色彩问题', id: '3' },
        4: { name: '无法更换屏幕内容', id: '4' },
        5: { name: '屏幕移位', id: '5' },
        0: { name: '其他', id: '0' }
    },
    rentalType: {
        1: { name: '婚礼宴会用屏' },
        2: { name: '活动庆典用屏' },
        3: { name: '舞台演出用屏' },
        4: { name: '婚礼宴会用屏' },
        0: { name: '其他用屏' }
    }

};
let demand_cate = {
    "1": '安装',
    "2": '维修',
    "3": '租赁',
    "4": '采购'
};
let vipLevel_config = {
    '10': '铁牌会员',
    '20': '铜牌会员',
    '30': '银牌会员',
    '40': '金牌会员',
};
let demand_empty = {
    "user": {
        id: '',
        nick: '加载中…',
        sex: 0,
        phone: '',
        rank: 0,
    },
    "id": "", //项目ID；
    "uid": "",
    "city": "加载中…",
    "prov": "",
    "cate": "1",
    "cate_name": "安装",
    "malf": "",
    "malf_name": "",
    "address": "",
    "type": 2,	//分类：0：其它；1：门头招牌；2：户外广告牌；3：信息告示牌；4：舞台用屏；5：室内高清屏；
    "size": "",
    "location": 1,  //1 => '户外', 2 => '室内', 3 => '半户外',
    "color": 1, //1：单色，2：双色，3：全彩
    "span": "",
    "budget": 0, //预算，0：表示议价；
    "budgetFormat": funs.budget(0),
    "image": "",	//需求场地图片
    "status": "10", //10进行中，
    "intm": 0,
    "uptm": 0,
    "note": "",
    "audio": "", //客服和客户之间的录音链接
    "bid_fee": 0, //抢单服务费
    "bid_cnt": 20,
    "supplier_partic_status": '0',
    "type_name": "户外广告屏",
    "location_name": '户外',
    "color_name": "单色",
    "span_id": 1,
    "supplier_list": [],
    "cmt_list": [],
    "user_finish_img_info": {//当前用户上传结项图片信息
        "state": 0,//-1,无上传；0,待审核；1，审核通过；2，审核失败
        "img": ""//图片url
    },
    "demand_finish_img_info": { //审核通过的项目结项图片信息
        "id": 0, //通过图片完成审核的用户id
        "nickname": "", //通过图片完成审核的用户名称
        "avatar": "", //用户头像，比如浩哥45度仰望星空的图片
        "img": "", //图片url
        "upload_time": "" //上传时间
    },
    "feedback_info": {
        "feedback": 0,         // 反馈信息  1 客户没有这个需求 2 多次拨打联系不上客户  3客户号码有误
        "feedback_status": 0,  // 反馈状态 1 驳回 2 通过 3 全部通过
        "is_revert": false     // 是否已返点
    },
    "product_type_name_display": "", // 采购产品类名；若类型不为采购, 则为空字符串, 下同
    "product_name_display": "",
    "deposit": "",
    "product_amount": "",
    "supply_date": "",
    "deadline": "",
    "my_offer": 0,//采购报价
    "partic_at": 0,    // 报价时间，
    "bid_start_point": '0',
    "curr_offer": 0,//当前输入框中的汇币
    "self_has_max":false,//是否200---是否爆灯
    "has_max":false,//是否有人爆灯
    "follow_records": [],
    "published_count":1,
    "publish_remark":"{}"//每次重新发布的理由

};

/** 全局数据 */
let globalData = {
    demand: [],
    current_demand: demand_empty, //当前打开的项目详情项目
    demand_config: demand_config,
    supplier_cnt: { prov: 1, total: 1, prov_level: 1, wechat: 1 },
    unread_num: {
        group_unread: '0',
        private_unread: '0'
    },
    supList: [],
    user: { id: 0, im_token: '', user_type: 0, rank: 1, credit: 0 },
    pack: {
        "id": 0,
        "uid": '0',
        "call_point": 0,
        "sms_point": 0,
        "total_call_point": 0,
        "total_sms_point": 0,
        "accum_call_point": 0,
        "accum_sms_point": 0,
        "area_id": [],
        "end_date": "",
        "created_at": 0,
        "updated_at": 0,
        "deleted_at": 0,
        "prov_list": [],
    },
    project_list: [],
    joined_list: [],
    currUserDemandList: [],
    friend_list: [{
        id: '3',
        nick: '万屏汇小秘书',
        phone: '',
        sex: '0',
        im_unread: 0,
        lastMsg: ''
    }],
    user_tags: {
        "install": true,
        "repair": true,
        "rent": true,
        "purchase": true
    },
    currType: "1",
    particalList: false,
    freeList: false,

    ipPos: {
        city: "深圳市",
        city_id: 440300,
        county: "南山区",
        county_id: 440305,
        prov: "广东省",
        prov_id: 440000,
        addr: ""
    },
    selPos: {
        city: "深圳市",
        city_id: 440300,
        county: "南山区",
        county_id: 440305,
        prov: "广东省111",
        prov_id: 440000,
        addr: ""
    },
    entryPage:'index',//入口路由
    domReady: false, //页面是否已经load
    preventRepeatedlyClick: true,//阻止多次重复点击事件
};